const getDate = (type) => {
	const date = new Date();
	if (type === 'end') {
		date.setDate(date.getDate() + 30);
	}

	let year = date.getFullYear();
	let month = date.getMonth() + 1;
	let day = date.getDate();
	month = month > 9 ? month : '0' + month;
	day = day > 9 ? day : '0' + day;
	return `${year}-${month}-${day}`;
}

export {
	getDate
}